package org.medicine.model;

import org.medicine.util.ExcelResources;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 12-12-11
 * Time: 下午11:13
 * To change this template use File | Settings | File Templates.
 */

@Entity
public class Medicine {

    private int id;
    /**
     * 药品名称
     */
    private String medicineName;
    /**
     * 药品英文名称
     */
    private String medicineEnglishName;

    /**
     * 性状
     */
    private String characters;
    /**
     * 用量
     */
    private String dosage;

    /**
     * 分类
     */
    private String type;

    /**
     * 药品类别
     */
    private String sort;

    /**
     * 注意事项
     */
    private String caution;

    /**
     * 不良反应
     */
    private String sideEffects;

    /**
     * 成分
     */
    private String components;

    /**
     * 禁忌
     */
    private String taboo;

    /**
     * 适应症
     */
    private String adaptation;


    @Id
    @GeneratedValue
    @ExcelResources(title = "序号", order = 1)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Column(nullable = false)
    @ExcelResources(title = "药品名称", order = 2)
    public String getMedicineName() {
        return medicineName;
    }

    public void setMedicineName(String medicineName) {
        this.medicineName = medicineName;
    }

    @Column(nullable = false)
    @ExcelResources(title = "用量", order = 7)
    public String getDosage() {
        return dosage;
    }

    public void setDosage(String dosage) {
        this.dosage = dosage;
    }

    @Column(nullable = false)
    @ExcelResources(title = "药品类别", order = 5)
    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    @ExcelResources(title = "注意事项", order = 12)
    public String getCaution() {
        return caution;
    }

    public void setCaution(String caution) {
        this.caution = caution;
    }

    @ExcelResources(title = "不良反应", order = 10)
    public String getSideEffects() {
        return sideEffects;
    }

    public void setSideEffects(String sideEffects) {
        this.sideEffects = sideEffects;
    }

    @Column(nullable = false)
    @ExcelResources(title = "成分", order = 9)
    public String getComponents() {
        return components;
    }

    public void setComponents(String components) {
        this.components = components;
    }

    @ExcelResources(title = "英文名", order = 3)
    public String getMedicineEnglishName() {
        return medicineEnglishName;
    }

    public void setMedicineEnglishName(String medicineEnglishName) {
        this.medicineEnglishName = medicineEnglishName;
    }

    @ExcelResources(title = "性状", order = 6)
    public String getCharacters() {
        return characters;
    }

    public void setCharacters(String characters) {
        this.characters = characters;
    }

    @Column(nullable = false)
    @ExcelResources(title = "分类", order = 4)
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @ExcelResources(title = "禁忌", order = 11)
    public String getTaboo() {
        return taboo;
    }

    public void setTaboo(String taboo) {
        this.taboo = taboo;
    }

    @ExcelResources(title = "适应状", order = 8)
    public String getAdaptation() {
        return adaptation;
    }

    public void setAdaptation(String adaptation) {
        this.adaptation = adaptation;
    }
}
